""" 
CSDN : heart_6662
PYTHON amateur   
"""
import string
# s = input("请输入一个数：\n")
# english_word = 0
# space = 0
# digit = 0
# other = 0
# for c in s:
#     if c.isalpha():
#         english_word += 1
#     elif c.isspace():
#         space += 1
#     elif c.isdigit():
#         digit += 1
#     else:
#         other += 1
# print('英文有%d,空格有%d,数字有%d,中文有%d' % (english_word,space,digit,other))

import re
s = input("请输入一个数：\n")
char = re.findall(r'[a-zA-Z]',s)
num = re.findall(r'[0-9]',s)
blank = re.findall(r' ',s)
chi = re.findall(r'[\u4E00-\u9FFF]',s)
other = len(s)-len(char)-len(num)-len(blank)-len(chi)
print("字母：", len(char),"\n数字：", len(num),"\n空格：",len(blank),"\n中文：",len(chi),"\n其他：",other)